package com.zsy.config.properties;

import com.zsy.base.constant.Constants;
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

@Data
@ToString
@Validated
@ConfigurationProperties(prefix = Constants.ROOT_PREFIX1,ignoreInvalidFields = true)
public class DemoProperties {
  @NotNull
  private String demo;
}
